Returns a Long value that represents the completed portion of the current operation. This property is supported only in the RecordsetSaveProgress event. Read-only.
expression.PercentComplete
expression Required. An expression that returns a DSCEventInfo object.
Use this property with the RecordsetSaveProgress event to update a control in the container, such as the status bar.
Using this property with an unsupported event will result in a run-time error.
This example uses the RecordsetSaveProgess event to update the Microsoft Internet Explorer's status bar when the recordset contained by the DataSourceControl object is saved.
Sub MSODSC_RecordsetSaveProgress(DSCEventInfo)
' Update the status bar with the current
' completion percentage.
Window.Status = DSCEventInfo.PercentComplete
' Check to see if the save has been completed.
If DSCEventInfo.PercentComplete = 100 then
' Clear the status bar when the save is complete.
Window.Status = ""
End If
End Sub